<?php
/* Initial Setup */
function wpboxes_setup() {
	global $content_width;
	if ( ! isset( $content_width ) ) $content_width = 800;
		add_theme_support( 'automatic-feed-links' );
		add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio' ) );

	if ( !function_exists( 'optionsframework_init' ) ) {
	define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/' );
	require_once 'inc/options-framework.php';
	}
}
add_action( 'after_setup_theme', 'wpboxes_setup', 1 );

/**************************************
	Load Custom Scripts
**************************************/
function wpboxes_custom_styles() {
	wp_enqueue_style( 'google-fonts', 'http://fonts.googleapis.com/css?family=Ubuntu:700|Monda', 'all' );
	if (is_home()) {
	wp_enqueue_script('jquery');	
	wp_enqueue_script( 'theslider', get_template_directory_uri() . '/lib/js/bjqs-1.3.min.js', false, '1.3' );
	}
}
add_action( 'wp_enqueue_scripts', 'wpboxes_custom_styles', 5 );

/******** Load Required Files ***************/
require_once ('lib/teasers.php'); 					// Load Teasers Function
require_once ('lib/menu.php'); 						// Load Custom Menus
require_once ('lib/slideshow.php'); 				// Load Slideshow
require_once ('lib/thumbnail.php'); 				// Load Thumbnails
require_once ('lib/pagination.php'); 				// Load Thumbnails
require_once ('lib/comments.php'); 					// Comments Callback
require_once ('lib/author.php'); 					// Load Author Box Functions
require_once ('lib/social.php'); 					// Load Author Box Functions
require_once ('lib/widgets.php'); 					// Load Widgets
//require_once ('inc/options-framework.php');		// Load Options
?>